<template>
  <div>
    <div>
      <gouzi2 class="my_div"
        v-for="(item, index) in arr"
        :key="index"
        :dogImgUrl="item.dogImgUrl"
        :dogName="item.dogName"
      ></gouzi2>
    </div>
  </div>
</template>

<script>
import gouzi2 from "./components/gouzi-2.vue";
export default {
  components: {
    gouzi2,
  },
  data() {
    return {
      arr: [
        {
          dogImgUrl:
            "http://nwzimg.wezhan.cn/contents/sitefiles2029/10146688/images/21129958.jpg",
          dogName: "博美",
        },
        {
          dogImgUrl:
            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1224576619,1307855467&fm=26&gp=0.jpg",
          dogName: "泰迪",
        },
        {
          dogImgUrl:
            "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2967740259,1518632757&fm=26&gp=0.jpg",
          dogName: "金毛",
        },
        {
          dogImgUrl:
            "https://pic1.zhimg.com/80/v2-7ba4342e6fedb9c5f3726eb0888867da_1440w.jpg?source=1940ef5c",
          dogName: "哈士奇",
        },
        {
          dogImgUrl:
            "http://tao.goulew.com/users/upfile/20190405/0a6e9a5d-f594-4ec7-97ad-428d6d4e0721.jpg",
          dogName: "阿拉斯加",
        },
        {
          dogImgUrl:
            "http://n.sinaimg.cn/sinacn/w640h556/20180221/cf2e-fyrswmu6709429.jpg",
          dogName: "萨摩耶",
        },
      ],
    };
  },
};
</script>

<style>
.my_div {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}

.my_div img {
  width: 100%;
  height: 200px;
}
</style>